﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Connections
{
    abstract class DatabaseConnection
    {
        private TimeSpan timeOut;
        private string connectionString;
        public string SetConnectionString
        {
            set
            {
                if (!String.IsNullOrEmpty(value))
                {
                    connectionString = value;
                }
                else throw new ArgumentException();
            }
            get
            {
                return connectionString;
            }
        }

        public DatabaseConnection(string status)
        {
            SetConnectionString = status;
        }

        public abstract void OpenConnection();
        public abstract void CloseConnection();
    }
}
